Skip to content

Conversation

hbordersTwitch
Copy link
Contributor

Previous implementation didn't have a serializer

EppoValueSerializer should only write one value: Previous implemenation could write multiple values (would always write a null) for anything that isn't an ARRAY_OF_STRING type

Eppo Internal:

🎟️ Fixes issue
📜 Design Doc: link if applicable

Motivation and Context

We want to preserve old flag values on our clients, so we need to be able to serialize a FlagConfigResponse that we generate on the client by combining the newly received FlagConfigResposne and the existing FlagConfigResponse

Description

Wrote a FlagConfigResponseSerializer that mirrors the implementation in FlagConfigResponseDeserializer

How has this been documented?

Added equivalent javadoc to what existed in FlagConfigResponseDeserializer

How has this been tested?

Added equivalent testing to what existed in FlagConfigResponseSerializer. Added another case to test serializing / deserializing BanditReference

Previous implementation didn't have a serializer

`EppoValueSerializer` should only write one value: Previous implemenation could write multiple values (would always write a `null`) for anything that isn't an `ARRAY_OF_STRING` type
@hbordersTwitch hbordersTwitch force-pushed the hbordersTwitch/add_serialization branch from 202e4f0 to 3d2f334 Compare May 27, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant